﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<Brjostagjof.Models.ViewModel>" %>

<ul>
    <% foreach (var item in Brjostagjof.Controllers.HomeController.GetTopArticles())
       { %>
        <li><%: Html.ActionLink(item.Title.DisplayFirst(25), "SynaGrein", new{ id = item.ID } ) %></li>
    <%} %>
</ul>